//
//  AddBankCardTableViewCell.m
//  FactorySale
//
//  Created by 主事丫环 on 2020/1/9.
//  Copyright © 2020 主事丫环. All rights reserved.
//

#import "AddBankCardTableViewCell.h"

@implementation AddBankCardTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

//- (void)setFrame:(CGRect)frame{
//    frame.origin.x += 10;
//    frame.origin.y += 10;
//    frame.size.height -= 10;
//    frame.size.width -= 20;
//    [super setFrame:frame];
//}

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        
        self.backgroundColor = [UIColor whiteColor];
        
        UIView *bottomV = [[UIView alloc] init];
        bottomV.frame = CGRectMake(0, 0, KWIDTH-20, 44);
        bottomV.layer.cornerRadius = 5;
        bottomV.layer.masksToBounds = YES;
        [self.contentView addSubview:bottomV];
    
        UILabel *cellTitLab = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, KWIDTH-40, 24)];
        cellTitLab.font = FontSize(14);
        cellTitLab.textAlignment = NSTextAlignmentLeft;
        cellTitLab.textColor = K333333;
        [bottomV addSubview:cellTitLab];
        self.cellTitLab = cellTitLab;
        
        UIImageView *pointImg = [[UIImageView alloc] initWithFrame:CGRectMake(KWIDTH -30, 13, 10, 18)];
        [pointImg setImage:imgname(@"AddBankCardPointImg")];
        [bottomV addSubview:pointImg];
        self.pointImg = pointImg;
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
